package acwing._2LanQiao.test;
/**
 * @Project : AlgorithmLearning
 * @Package : ACWing._2LanQiao.test
 * @File : quickPower.java
 * @Author : WangRuoyu
 * @Date : 2023/4/7 19:21
 */

import java.io.*;

public class quickPower {
    static long qmi(long a, long k, long p) {
        long res = 1;
        while (k != 0) {
            if ((k & 1) == 1) res = res * a % p;
            k >>= 1;
            a = a * a % p;
        }
        return res;
    }

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int a = 2;
        int p = 1000000007;
        for (int i = 0; i <= 50; ++i) {
            System.out.println(qmi(a, i, p));
        }
    }
}
